﻿using Qins.PluginInterface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Qins.Plugins.ThrowError
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        ThrowErrorPlugin _tep;
        public MainWindow()
        {
            InitializeComponent();
        }
        public MainWindow(ThrowErrorPlugin tep)
        {
            _tep = tep;
            InitializeComponent();
        }

        private void btnerror_Click(object sender, RoutedEventArgs e)
        {
            throw new Exception();
        }

        private void btnLog_Click(object sender, RoutedEventArgs e)
        {

            MessageContent mc = new MessageContent();
            mc.messageType = MessageConentTypeEnum.Log;
            mc.content = "asdfsdfsd";
            _tep.CallPluginRun("Qins.Plugins.ThrowError.ThrowErrorPlugin", mc);

        }
    }
}
